package com.lanchetech.user.controller;

import com.lanchetech.bean.request.TeacherGroupReq;
import com.lanchetech.bean.response.BasePageResp;
import com.lanchetech.bean.response.ResultData;
import com.lanchetech.bean.vo.TeacherGroupVO;
import com.lanchetech.user.service.TeacherService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Api(value = "讲师管理", tags = "讲师管理")
@RequestMapping("/api/teacher")
@RestController
public class TeacherController {

    @Autowired
    TeacherService teacherService;

    @ApiOperation("获取讲师团队列表")
    @PostMapping("/getTeacherGroupPage")
    public ResultData<BasePageResp<TeacherGroupVO>> getTeacherGroupPage(@RequestBody TeacherGroupReq req) {
        return teacherService.getTeacherGroupPage(req);
    }

}
